package com.yunxi.service.localService.dealer;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.service.IServicePlus;
import com.yunxi.core.web.ApiResult;
import com.yunxi.dealer.pojo.ExportPartnerVO;
import com.yunxi.dealer.pojo.ExportPartnerVOUps;
import com.yunxi.dealer.pojo.PartnerVO;
import com.yunxi.model.dealer.Partner;

import java.util.List;

/**
 * <p>
 * 渠道商信息 服务类
 * </p>
 *
 * @author 
 * @since 2019-05-13
 */
public interface PartnerService extends IServicePlus<Partner> {

   PartnerVO load(String partnerCode,String tenantId);

    PartnerVO getCasById(String partnerId);

    PartnerVO getByUserCode(String userCode);

    List listSel(PartnerVO v);

    PageInfo pageSel(PartnerVO v, Integer pageNum, Integer pageSize);

   ApiResult listByAreaCode(PartnerVO partnerVO, Integer pageNum, Integer pageSize);

   List<PartnerVO> listByAreaCodes(PartnerVO vo);

   String leastPartner(String clueType, String province,String vehicleCode,String city);

    PartnerVO getByPartnerCode(String partnerCode);

   PartnerVO getByBusinessCode(String s);

   List<PartnerVO> listByProductAuth(String partnerCode, String productTypeCode);

   String getPartnerType(String partnerCode);

   String getAccountGroupCode(String financeInstitutionCode);

   String getPartnerCodeByPartnerName(String partnerName);

    List<ExportPartnerVO> exportPartnerPMS(PartnerVO partnerVO);

    List<ExportPartnerVOUps> exportPartnerUPS(PartnerVO partnerVO);
}
